//package pio.action;
//
//import DBMS.DataBaseManager;
//import clases.Switch;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import org.apache.struts.action.Action;
//import org.apache.struts.action.ActionForm;
//import org.apache.struts.action.ActionForward;
//import org.apache.struts.action.ActionMapping;
//
///**
// *
// * @author Andreth
// */
//public class ModificarSwitch extends Action {
//
//    private final String SUCCESS = "SUCESS";
//
//    public ActionForward execute(ActionMapping mapping, ActionForm form,
//            HttpServletRequest request, HttpServletResponse response)
//            throws Exception {
//        Switch sw = (Switch) form;
//        DataBaseManager dbms = DataBaseManager.getInstance();
//        if (!dbms.agregarSwitch(sw)) {
//            sw.setMensaje("Revise el formato de fechas");
//            request.setAttribute("Switch", dbms.consultarSwitch());
//        }
//        return mapping.findForward(SUCCESS);
//    }
//}
